<?php
namespace app\common\model;

use think\Model;

class Message extends Model
{
    protected $connection = 'db_config_aiqi';
    protected $table = 'tab_customer_services';

    public function getDetail()
    {
        return $this->hasMany('MessageDetail', 'customer_id', 'id')->where(["status"=>0,'type'=>1]);
    }

    public function getDetailList()
    {
        return $this->hasMany('MessageDetail', 'customer_id', 'id');
    }
}